package com.itcast.ssm.common;

import lombok.Data;

/**
 * @Author 郭泽鹏
 * @Date 2020/8/29 10:26
 * @Version 1.0
 * @Description 订单的状态
 */
public enum  OrderStatus {
    ORDER_NOTAKE("未接订单", 0),
    ORDER_TAKE("已接订单", 1),
    ORDER_SUCCESS("完成订单", 2);
    //状态
    private String orderStatus;
    //状态码
    private Integer statusCode;
    OrderStatus(String orderStatus, int statusCode) {
        this.orderStatus = orderStatus;
        this.statusCode = statusCode;
    }
    public String orderStatus() {
        return orderStatus;
    }

    public Integer statusCode() {
        return statusCode;
    }
}
